<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>" target="_blank">
    <title>骑驴搜索</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="职场  公司 评论 薪水 搜索  骑驴网">
	<meta http-equiv="description" content="中国最专业的职场交流中心">
	<link rel="icon" href="${pageContext.request.contextPath}/favicon.ico" type="image/x-icon"/>
	<link rel="shortcut icon" href="${pageContext.request.contextPath}/favicon.ico" type="image/x-icon"/>
	<link rel="stylesheet" type="text/css" href="css/main.css">
	<link rel="stylesheet" type="text/css" href="css/comm.css">
	<style type="text/css">
	body {
		color: #333;
	}
	img{
		border:0;	
	}
	#findResult a{
	    color:#0033cc;
	}
	#findResult a:hover {
		text-decoration: underline;
	}
	#content {
		width: 980px;
		height: 440px;
	}
	#logo {
		width:900px;
		margin:50px 0px;
	}
	#search {
		width:350px;
		height:30px;
		margin:50px auto;
	}
	form {
		padding: 0px;
		margin: 0px;
	}
	#findkeyword a {
		text-decoration: underline;
		color: red;
	}
	</style>
</head>

<body>
<%@include file="header.jsp" %>
<center>
<div id="content">
	<div id="logo"><a href="<%=basePath%>">
		<img src="images/7lv_final.jpg"/>
	</a></div>
	<div style="width:85%;height:60px;">
		<form action="#" method="get" onsubmit="findCompa(this.name.value);return false;">  
			<input type="text" name="name" style="margin-left:150px;float:left;width:500px;height:30px;border:1px solid #c6c6c6;background-color:#FFF;color:#646464;"/>
			<input type="submit" style="float:left;margin-left:5px;border:1px solid #c6c6c6;background-color:#f2f2f2;color:#646464;height:30px;" value="骑 驴 搜 索"/>
			<p style="clear: left;margin:2px;"><input type="radio" name="type" value="-1">全部 
			<input type="radio" name="type" value="1" checked>公司
			<input type="radio" name="type" value="2">职场</p>
		</form>
	</div>
	<div id="findResult" style="text-align:left;width:auto;padding-top:5px;text-align:center;">
	 <label style="color:#BA2636;">热门关键词：</label><span id="findkeyword" style="color:blue;"></span>
	</div>
</div>
</center>
<%@include file="tailer.jsp" %>
</body>
<script type="text/javascript" src="js/javer.js"></script>
<script type="text/javascript">	
	// 热门关键字
	$("findkeyword").load("company.html?method=getHotCompanyKeywords&limit=8");
	
	function findCompa(name, tar) {
		name = name || "";
		tar = tar || "_blank";
		name = encodeURIComponent(encodeURIComponent(name));
		window.open("${pageContext.request.contextPath}/company.html?method=findCompany&name=" + name, tar, "");
	}
</script>
</html>
